package com.slmxz.tms.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.slmxz.tms.common.model.Option;
import com.slmxz.tms.system.model.bo.RouteBO;
import com.slmxz.tms.system.model.entity.Menu;
import com.slmxz.tms.system.model.vo.MenuVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 菜单访问层
 * @author sunyao
 * @Date 2024/10/25
 */

public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 获取菜单路由列表
     */
    List<RouteBO> listRoutes(Set<String> roles);

    List<Option<Long>> selectOptions(@Param("menu") MenuVO menu);

}
